//
//  ZQQBannerView.h
//  ZQQBannerView
//
//  Created by MoDao-iOS on 2017/7/15.
//  Copyright © 2017年 wushengdubai. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ZQQBannerProtocol.h"

typedef NS_ENUM(NSInteger, BannerViewPageControlPosition) {
    BannerViewPageControlPositionLeft = 0,
    BannerViewPageControlPositionCenter = 1, // 默认是1
    BannerViewPageControlPositionRight = 2,
};

typedef void(^LoadImageBlock)(UIImageView *imgView, NSURL *url);

@protocol ZQQBannerViewDelegate <NSObject>

- (void)adBannerViewDidSelectedPicModel: (id<ZQQBannerProtocol>)picM;

@end

@interface ZQQBannerView : UIView

// 初始化方法
+ (instancetype)bannerViewWithLoadImageBlock: (LoadImageBlock)loadBlock withPagePosition:(BannerViewPageControlPosition)position;

/** pageControl的位置 */
@property (nonatomic, assign) BannerViewPageControlPosition pageControlPosition;

/** 用于加载图片的代码块, 必须赋值 */
@property (nonatomic, copy) LoadImageBlock loadBlock;

/** 代理 */
@property (nonatomic, weak) id <ZQQBannerViewDelegate> delegate;

/** 数据源*/
@property (nonatomic, strong) NSArray<id <ZQQBannerProtocol>> *picModels;
@end
